PluginHeader{
	RailSimVersion = 2.13;
	PluginType = Struct;
	PluginName = "[道路]固定式視線誘導柱";
	PluginAuthor = "NyahoTaro";
	IconTexture = "../../Struct/common_nya/nyaicon.png";
	Description = "";
}
StructInfo{
}

DefineSwitch "タイプ"{
	Entry = "01";
	Entry = "02";
}
DefineSwitch "点滅"{
//	Entry = "自動";
//	Entry = "ON";
//	Entry = "OFF";
	Entry = "未実装";
}
DefineSwitch "■ポールタイプ"{
	Entry = "アームフランジ型";
//	Entry = "テーパー式";
}

DefineSwitch "└ アーム幅"{
	Entry = "1.5m";
	Entry = "2.0m";
	Entry = "2.5m";
	Entry = "3.0m";
	Entry = "3.5m";
	Entry = "4.0m";
}

DefineSwitch "土台"{
	Entry = "あり";
	Entry = "なし";
}


PrimaryAssembly{
//-	ダミー
	Object3D "Dummy"{
		ModelFileName = "";	ModelScale = 100.0;
		Joint3D "_LOCAL"{
			AttachCoord = (0.0, 0.0, 0.0);
			AttachDir = (0.0, 0.0, -1.0);
		}
	}

//-	コンクリート基礎
	Object3D "Base"{
		ModelFileName = "";	ModelScale = 100.0;
		If "_CAMDIST">600{	ChangeModel = "", 1.0;	}
		NoShadow = 1;		ChangeAlpha = 1, 0.4;
		If "土台"==0 {
			ChangeModel = "Base.x", 10.0;
		}
		Joint3D "Dummy"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	ポール
	Object3D "Pole"{
		ModelFileName = "";	ModelScale = 100.0;
		If "_CAMDIST">100{	ChangeModel = "", 1.0;	}
		ApplySwitch "■ポールタイプ"{
		Case 0:	
			ChangeModel = "PoleF-H7.0m.x", 10.0;
		}
		Joint3D "Base"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	アーム横
	Object3D "Arm"{
		ModelFileName = "";	ModelScale = 100.0;
		If "_CAMDIST">100{	ChangeModel = "", 1.0;	}
		ApplySwitch "■ポールタイプ"{
		Case 0:	
			ApplySwitch "└ アーム幅"{
			Case 0:	
				ChangeModel = "PoleF-L1.5m.x", 10.0;
				StaticMove {	Displacement  = (1.5, 7.0, 0.0);	}
			Case 1:	
				ChangeModel = "PoleF-L2.0m.x", 10.0;
				StaticMove {	Displacement  = (2.0, 7.0, 0.0);	}
			Case 2:	
				ChangeModel = "PoleF-L2.5m.x", 10.0;
				StaticMove {	Displacement  = (2.5, 7.0, 0.0);	}
			Case 3:	
				ChangeModel = "PoleF-L3.0m.x", 10.0;
				StaticMove {	Displacement  = (3.0, 7.0, 0.0);	}
			Case 4:	
				ChangeModel = "PoleF-L3.5m.x", 10.0;
				StaticMove {	Displacement  = (3.5, 7.0, 0.0);	}
			Case 5:	
				ChangeModel = "PoleF-L4.0m.x", 10.0;
				StaticMove {	Displacement  = (4.0, 7.0, 0.0);	}
			}
		}
		Joint3D "Base"{
			AttachCoord = (0.0, 0.0, 0.0);
		}
	}

//-	メインモデル
	Object3D "Main"{
		ModelFileName = "Main01.x";	ModelScale = 10.0;
		ApplySwitch "タイプ"{
		Case 1:		ShiftTexture = 0, 0.25, 0.0;
		}
		Joint3D "Arm"{
			AttachCoord = (0.0, 0.0, -0.03);
		}
	}

}